<template>
  <div>
    <div id="target">123</div>
  </div>
</template>

<script>
import $ from 'jquery'
import area from './area.json'
export default {
  data() {
    return {

    }
  },
  beforeCreate() {
    iPicker.create("#target", {
      data: {
        // 此处以通过 jquery 库获取本地数据源为例
        source: code => $.get("http://www.abcddcba.com/api/area/areaId=" + (code || 0))
      }
    })
  }
}
</script>

<style scoped></style>